package com.lxmes.business.mapper;

import java.util.List;
import com.lxmes.business.domain.ZcOrderCostSummary;
import com.lxmes.common.annotation.DataScope;

/**
 * 订单成本汇总Mapper接口
 *
 * @author lx
 * @date 2023-06-21
 */
public interface ZcOrderCostSummaryMapper
{
    /**
     * 查询订单成本汇总
     *
     * @param id 订单成本汇总主键
     * @return 订单成本汇总
     */
    public ZcOrderCostSummary selectZcOrderCostSummaryById(Long id);

    /**
     * 查询订单成本汇总列表
     *
     * @param zcOrderCostSummary 订单成本汇总
     * @return 订单成本汇总集合
     */
    @DataScope(deptAlias = "de", userAlias = "de")
    public List<ZcOrderCostSummary> selectZcOrderCostSummaryList(ZcOrderCostSummary zcOrderCostSummary);

    /**
     * 新增订单成本汇总
     *
     * @param zcOrderCostSummary 订单成本汇总
     * @return 结果
     */
    public int insertZcOrderCostSummary(ZcOrderCostSummary zcOrderCostSummary);

    /**
     * 修改订单成本汇总
     *
     * @param zcOrderCostSummary 订单成本汇总
     * @return 结果
     */
    public int updateZcOrderCostSummary(ZcOrderCostSummary zcOrderCostSummary);

    /**
     * 删除订单成本汇总
     *
     * @param id 订单成本汇总主键
     * @return 结果
     */
    public int deleteZcOrderCostSummaryById(Long id);

    /**
     * 批量删除订单成本汇总
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteZcOrderCostSummaryByIds(Long[] ids);
}
